package com.matchmaking.system.mapper;



import com.matchmaking.system.domain.District;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DistrictMapper{

    /**
     * 根据地区查询
     * @return
     */
    List<District> selectObjects(@Param("district") District district);

    /**
     * 根据地区修改
     * @return
     */
    Integer updateObjects(District district);

    /**
     * 根据地区添加
     * @return
     */
//    Integer insertObjects(District district);


    /**
     * 根据地区删除
     * @return
     */
    Integer removeObjects(Integer id);

    /**
     * 根据城市等级报表统计
     * @return
     */
    List<District> findexcharDistrict();

    /**
     * 根据首字母报表统计
     * @return
     */
    List<District> findFirstLetter();

    /**
     * 根据城市等级报表统计折线图
     * @return
     */
    List<District> leveldists();

    /**
     * 状态修改
     * @return
     */
    void updateStatus(District district);


    /**
     * 导出
     * @return
     */
    List<District> DistrictExport(District district);

    District selectCityNameLevel(@Param("district") District district);

    Integer insertObject(@Param("district") District district);
}
